<?php

namespace api;

if (!defined('GAME')) {
    exit;
}
$echo("Ini-Loading activé<br>");

define("INILOADER", true);

function arrayFromIni($name, $namespace = "") {
    if (preg_match("`^[a-zA-z0-9]*$`", $name) === 1) {
        $path = str_replace('\\', '/', $namespace);
        $filename = ROOT . 'ini/' . $path . '/' . $name . '.ini';

        if (is_file($filename)) {
            return parse_ini_file($filename, true);
        }
    }
}

?>